EG Information

Main Index
EG Manual
Disclaimer
Legal Information
Hall of Fame
Hall of Shame
Member Rankings
Members List
Meet the Staff

Training Missions

Read Me First
Basic Skills
Realistic Scenarios
Cryptography
Software Cracking
Linux ELF Binary Cracking
Logical Thinking
Programming
Captcha Cracking
Patching
Steganography
Deface This Wall
/dev/null
/dev/urandom
/dev/extra

Knowledge Bank

Discussion Forums
Exploit Database New
PasteBin New
RSS Feeds RSS
Articles / Tutorials
Videos
Online EG MP3 Player Radio
Downloads
Tools

Code Resources

Submit Code
Ajax
ASM
Bash
C
CPP
Csharp
Delphi
Haskell
Java
Javascript
Jython
Lisp
mIRC
MySQL
Perl
PHP
Python
QBASIC
VisualBasic

Pimp Us Out!

Review enigmagroup.org on alexa.com

Has Enigma Group Helped You? Then Help Us By Advertising For Us. Place One Of The Following Images On Your Site And Create A Link Back To Enigma Group.

Enigma Group

Enigma Group

Enigma Group

Enigma Group

 

Affiliates



The Urinal

hackhound.org

suck-o.com

hack.org.za

flyninja.net

 

Enigma Group's Code Bank


[PHP] Live-Site v1.0

By: blink_212  -  Date Submitted: 2009-12-20 15:31:37

  1. <?php
  2.  
  3. /**
  4.  * Same-Server v1.0
  5.  *
  6.  * Script for testing a large list
  7.  * of website sites retrieved from
  8.  * a reverse IP domain check. This
  9.  * is useful for when you want access
  10.  * to a specific server and discover
  11.  * the server is hosting alot of other
  12.  * sites on the server.
  13.  *
  14.  * Here is a short list of reverse
  15.  * IP domain checkers :-
  16.  *
  17.  * yougetsignal.com
  18.  * myipneighbors.com
  19.  * ip-domain.com.cn
  20.  * domaintools.com
  21.  *
  22.  * Simply do the check, and copy-paste
  23.  * all of the results into a text file
  24.  * and put the name of the file in the
  25.  * same dir. Dont for get to name the
  26.  * text file accordingly in the
  27.  * settings.
  28.  *
  29.  * The results are saved in
  30.  * '127.0.0.1-live.html'. Where the IP
  31.  * address is the IP of the target
  32.  * specified. The file is overwritten,
  33.  * each time.
  34.  *
  35.  * Coded by blink_212
  36.  *
  37.  * ~ Enjoy!
  38.  */
  39.  
  40. $list = "list.txt"; // List of websites from reverse IP domain check.
  41. $target = "72.167.183.31"; // Server you want to test against. Best to use IP address.
  42.  
  43.  
  44. $save = fopen("$target-live.html","w");
  45. fwrite($save, "<html><head><title>$target Active-Domain Results ~ Coded by zeN</title></head><body>");
  46. fclose($save);
  47.  
  48. $urls = file($list);
  49. $count = count($urls);
  50. echo "\n[+] Checking [$count] domains on [$target]...\n";
  51. foreach($urls as $site){
  52.  
  53. $site = substr_replace($site,"",-2);
  54.  
  55. if($site != ""){
  56. if( (GetIP($site) == $target) ){
  57. if(CheckHost($site)){
  58. echo "[+] [$site] is active!\n";
  59. @$i++;
  60. SaveSite($site);
  61. } else {
  62. echo "[-] [$site] is down!\n";
  63. }
  64.  
  65. } else {
  66. echo "[-] [$site] isn't on the server!\n";
  67. }
  68. }
  69. }
  70.  
  71. echo "\n[+] Finished! [$i / $count] hosts active!\n\n";
  72.  
  73. $save = fopen("$target-live.html","a");
  74. fwrite($save, "</body></html>");
  75. fclose($save);
  76.  
  77.  
  78. function GetIP($host){
  79. $ip = gethostbyname($host);
  80. return $ip;
  81. }
  82.  
  83. function CheckHost($host)
  84. {
  85. $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
  86. $sCon = socket_connect($sock, $host, 80);
  87.  
  88. if(!$sCon){
  89. $ret = false;
  90. } else {
  91. $ret = true;
  92. }
  93. @socket_close($sCon);
  94. return $ret;
  95. }
  96.  
  97. function SaveSite($host)
  98. {
  99. global $target;
  100. $log = ' <a href="http://'.$host.'">'.$host.'</a><br />'."\n";
  101. $save = fopen("$target-live.html","a");
  102. fwrite($save, $log);
  103. fclose($save);
  104. }
  105.  
  106. ?>
Return to php category list

Who Visited EnigmaGroup Today?

1518 Guests, 298 Users (191 Spiders)
obencefoozy, spartanvedicrishi, g3nu1n3, DrOptix, memoryshot, mongrel88, drag0n, Kearstin29, litbk, myfabregas, alexelixir, r0z4, Abhinav2107, theanonymous21, greatg, CreedoFiegree, bivaEmilltite, posthuman01, Taireegaddita, Taicadine, c_a13, hizImmoli, scifics, slchill, KELATALFTUS, kynapse, Tonyui, Hackpad, Epilioptiop, VireekadiaFap, Mamorite, IodindDog, brunoriversyhn, Effomeidonize, ReottphoffBom, arktek, burgeoningneophyte, TradaGreant, SlayingDragons, Waldlyeps, Arsenal, CJ_Omaha, Ryuske, thethird3y3, todayadvila, pwnpwnlolz, NeetaexomYgom, ookami-namikaze, dot_Cipher, Unotohumsmush, SaubymorRoyab, loltyg, Ausome1, Rik, hrangel, cyber-guard, Meonkzt, mori, 31415926, optioniLele, intorerse, FlifobbyFloks, Ios, saraf, Røgue, cossyDrybrich, IvanDimitriev, havisham, KIKNWING, fitz, fleeloCycle, hackboy302, strudels, CootoDorbeeft, gymnediny, hustleman9tv, comando300, Ysri13, thatoneguy, Paran0id, whoami, Pitanteerve, Reapon, cls777, Afrika, suetekh, somebody777, floontiny, Frudopvia, jasonbourne, zombiehack640, CloverCipher, spoosh, Fraubbova, rulebreaker, dncjor, Fintyoptots, viRuleNt, NipPaineHainy, TheHarrisonW, Jamesgo, TheGanjator, psychomarine, 1421carter, tingle65, claudius, Feld Grau, Partisan, Gunslinger, gydeqqzpn, yshiau, Zaccarato, chromoSone, priovasashCor, ellisp, GothicLogic, keetone, M0rdak, UsedDeteKef, nhorton, archestraty, HatriteBeft, JC06dc5, alpha1, spg, dark_void, wakazi, mtroscheck, TheCheeseDemon, ach.n30, sahariar, hervelegeraf, Psiber_Syn, hackaday, Mod777, neompenly, pollolololo, SnoopSky, Cigmimifs, ProloG-Shaman, unicornrainbow, cheapnikeshoxog, bobsters, foofthoorgo, polemarchos, avacraft, spencerwilliams23, lotato, ryanjcrook, dollerolf, robintenboden, rospark, WexEmbet, BeefSupreme, Hessesian, whydoyoulook, cdpirate, DnA-Ender, CaNcEr, zheincnoob, Vengeance987, justforfun363, RawTeefecycle, Squissesk, aVoid, SaMTHG, neodude, Marion1p, Ops, ddxc, BlAd373, Klosse, khamhou, samsatHD80, PauffPubadvic, AnnaNoult, SexyCreerve, newb1, robster1977, Blizer, Dudleypagrove, Mr_KaLiMaN, FirewallPenetrator, GMo, Seasharp, mrchicken1, Zaxem, N4g4c3N, MaxMeier, Ian, sander.ashwin, Predatorc, lonely.connection, ElEnfermado, wavyd, dirkdanblue, cve916, kalak55, a1los, jell0, Exclaw, veceattainc, Muselele, Mr Pacifist, stylish007, zach, closednetwork99, soroimmuror, PlaneReaction, Wamemanytex38, DieAble, d0seN_36b, jeremy.whitson, lol, nefeolnb, Noticon, statix, anandoump, RomeoG, advilapyday, snorapa, Gkjt, autotuneuser, beanulpinee, 2142, kiklopas, door51, Pizza, deepakkumar, makler2004, M4rcy, Xargos, bdkoenig, Blavatsky, m4f10, Huasca, itsme, xu_lain, Nikhil, ChewBigRed, samxoxo, incicaMaidits, toudioria, Chidokage, Jigoku, cesecyclelm, schn1ffl3r, sam20000, learning, kentora, San Marino, Nightraven, zanydouner, FrofErrodslot, FatalEror, wheaties, akki, AlexDiru, unclejos666, override101, blink_212, uncowstientee, lilkpoigogs, Innonaenupt607, Killshot, ZheIncKnight, ActictGlync, acarseflalk, ___, trashsporn, Memartent, Zoorsornaks, z3z3, heyhey123, Ghajnm, usaliaPels, Ordeptpen, pelly, quellense, Szuba, nmobin27, lamb, x1rt4m, ToutousaRulty, vipervince2002, mannavard1611, BinaryShinigami, Duchdund, afgnumgt, Anatissa, darkfire1515, bennyblanco5000, Mmmett50, ToryLogsEsoff, impalwinona, Kelsfednege, ensubbrut, ant0601
 
Enigma Group